package com.atguigu.gmall.common.config.thread.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix = "app.threadpool")
@Data
public class ThreadProperties {

     Integer corePoolSize = 4;
     Integer maximumPoolSize = 8;
     Long keepAliveTime = 5l;
     Integer workQueueSize = 1000;
}
